<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form action="<?php echo url_for('peticiones/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?id='.$form->getObject()->getId() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
<?php if (!$form->getObject()->isNew()): ?>
<input type="hidden" name="sf_method" value="put" />
<?php endif; ?>
<div id="fondospeticion" align="center"><br>
  <table>
    <tfoot>
      <tr>
        <td colspan="2"><br>
          <div align="center"><button type="submit" class="buttonmediumauto button-green"><span><div id="imagenes" valign="middle"><div class="spritesimagenenviarsmall" id="enviarsmall_jpg"></div></div><div id="textobutton2">Enviar Petición</div></span></button></div>
        </td>
      </tr>
    </tfoot>
    <tbody>
      <?php echo $form ?>
    </tbody>
  </table><br>
</div>
</form><br><br>
<a href="<?php echo url_for('inicio/index') ?>"><div align="center"><button class="buttonmediumauto button-green"><span><div id="imagenes" valign="middle"><div class="spritesatrasmall" id="atrasmall_jpg"></div></div><div id="textobutton2">Ir al Inicio</div></span></button></div></a>